package com.secsbrain.deploy.dal.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 *
 * 构建记录表
 *
 */
@TableName(value = "build_record")
public class BuildRecord implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/** 主键 */
	@TableId(type = IdType.AUTO)
	private Long id;

	/** 应用环境 */
	private String env;
	
	/** 主机名，多个以,分隔 */
	@TableField(value = "host_names")
	private String hostNames;

	/** 应用名称 */
	@TableField(value = "app_name")
	private String appName;

	/** 应用ID */
	@TableField(value = "app_id")
	private Long appId;

	/** 命名空间 */
	@TableField(value = "name_space")
	private String nameSpace;

	/** 分支 */
	private String branch;

	/** jenkins构建号 */
	@TableField(value = "build_no")
	private Long buildNo;

	/** 创建时间 */
	@TableField(value = "create_time")
	private Date createTime;

	/** 状态，0-未构建（已审批），1-准备构建，2-构建中，3-构建成功，3-构建失败 */
	private Integer status;
	
	/** 审批ID */
	@TableField(value = "approval_id")
	private Long approvalId;
	
	/** 批量ID */
	@TableField(value = "batch_id")
	private Long batchId;
	
	/** 创建人 */
	@TableField(value = "create_name")
	private String createName;
	
	/** 删除状态，0-未删除，1-已删除  */
	@TableField(value = "del_status")
	private Integer delStatus;
	
	@TableField(value = "package_cmd")
	private Integer packageCmd;
	
	@TableField(value = "deploy_cmd")
	private Integer deployCmd;
	
	@TableField(value = "test_cmd")
	private Integer testCmd;
	
	@TableField(value = "group_id")
	private Long groupId;
	
	@TableField(value = "group_name")
	private String groupName;
	
	/**灰度流量百分比*/
	@TableField(value = "gray_percent")
	private Integer grayPercent;
	
	@TableField(exist = false)
	private String startTime;
	
	@TableField(exist = false)
	private String endTime;
	
	public Integer getPackageCmd() {
		return packageCmd;
	}

	public void setPackageCmd(Integer packageCmd) {
		this.packageCmd = packageCmd;
	}

	public Integer getDeployCmd() {
		return deployCmd;
	}

	public void setDeployCmd(Integer deployCmd) {
		this.deployCmd = deployCmd;
	}

	public Integer getTestCmd() {
		return testCmd;
	}

	public void setTestCmd(Integer testCmd) {
		this.testCmd = testCmd;
	}

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getEnv() {
		return this.env;
	}

	public void setEnv(String env) {
		this.env = env;
	}

	public String getAppName() {
		return this.appName;
	}

	public void setAppName(String appName) {
		this.appName = appName;
	}

	public Long getAppId() {
		return this.appId;
	}

	public void setAppId(Long appId) {
		this.appId = appId;
	}

	public String getBranch() {
		return this.branch;
	}

	public void setBranch(String branch) {
		this.branch = branch;
	}

	public Long getBuildNo() {
		return this.buildNo;
	}

	public void setBuildNo(Long buildNo) {
		this.buildNo = buildNo;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getHostNames() {
		return hostNames;
	}

	public void setHostNames(String hostNames) {
		this.hostNames = hostNames;
	}

	public String getCreateName() {
		return createName;
	}

	public void setCreateName(String createName) {
		this.createName = createName;
	}

	public Integer getDelStatus() {
		return delStatus;
	}

	public void setDelStatus(Integer delStatus) {
		this.delStatus = delStatus;
	}

	public Long getGroupId() {
		return groupId;
	}

	public void setGroupId(Long groupId) {
		this.groupId = groupId;
	}

	public String getGroupName() {
		return groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	public Integer getGrayPercent() {
		return grayPercent;
	}

	public void setGrayPercent(Integer grayPercent) {
		this.grayPercent = grayPercent;
	}

	public Long getApprovalId() {
		return approvalId;
	}

	public void setApprovalId(Long approvalId) {
		this.approvalId = approvalId;
	}

	public Long getBatchId() {
		return batchId;
	}

	public void setBatchId(Long batchId) {
		this.batchId = batchId;
	}

	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public String getNameSpace() {
		return nameSpace;
	}

	public void setNameSpace(String nameSpace) {
		this.nameSpace = nameSpace;
	}
}
